import urllib,urllib2 

url   = 'http://www.ip138.com/ip2city.asp'
proxy = '183.166.244.110:6666' 
opener = urllib2.build_opener( urllib2.ProxyHandler({'http':proxy}) ) 
urllib2.install_opener( opener ) 

sContent = urllib2.urlopen(url) 
print sContent.read()

re = urllib2.Request(r'http://ikandou.com/book/download/100')  
rs = urllib2.urlopen(re).read()  
open('1.mobi', 'wb').write(rs)  